﻿using AgvDispatchSystemWpf.Base;
using AgvDispatchSystemWpf.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgvDispatchSystemWpf.ViewModel
{
    public class AgvViewModel:NotifyPropertyBase
    {
        private AgvModel _agvModel;

        public AgvModel AgvModel
        {
            get { return _agvModel; }
            set
            {
                _agvModel = value;
                RaisePropertyChanged(nameof(AgvModel));
            }
        }

        public AgvViewModel()
        {
            _agvModel.PropertyChanged += _agvModel_PropertyChanged;
        }

        private void _agvModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            RaisePropertyChanged(nameof(AgvModel));
        }
    }
}
